package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DcResolucionTaii generated by hbm2java
 */
@Entity
@Table(name = "DC_RESOLUCION_TAII", schema = "EDADEPUDOC")
@SequenceGenerator(name="SEQ_DC_RESOLUCION_TAII" , sequenceName="SEQ_DC_RESOLUCION_TAII")
public class DcResolucionTaii implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6383909443914131606L;
	private Long ncorrelativo;
	private DcResolucion dcResolucion;
	private String sobservacionTaii;
	private Date fhingreso;
	private String cusuario;
	private Integer mestado;
	private String cflujo;
	private String cincidencia;
	private Integer bextemporanea;
	
	@Column(name = "B_EXTEMPORANEA")
	public Integer getBextemporanea() {
		return bextemporanea;
	}

	public void setBextemporanea(Integer bextemporanea) {
		this.bextemporanea = bextemporanea;
	}

	@Column(name = "C_INCIDENCIA")
	public String getCincidencia() {
		return cincidencia;
	}

	public void setCincidencia(String cincidencia) {
		this.cincidencia = cincidencia;
	}

	@Column(name = "C_FLUJO")
	public String getCflujo() {
		return cflujo;
	}

	public void setCflujo(String cflujo) {
		this.cflujo = cflujo;
	}

	public DcResolucionTaii() {
	}

	public DcResolucionTaii(Long ncorrelativo, DcResolucion dcResolucion,
			Date fhingreso) {
		this.ncorrelativo = ncorrelativo;
		this.dcResolucion = dcResolucion;
		this.fhingreso = fhingreso;
	}

	public DcResolucionTaii(Long ncorrelativo, DcResolucion dcResolucion,
			String sobservacionTaii, Date fhingreso, String cusuario,
			Integer mestado) {
		this.ncorrelativo = ncorrelativo;
		this.dcResolucion = dcResolucion;
		this.sobservacionTaii = sobservacionTaii;
		this.fhingreso = fhingreso;
		this.cusuario = cusuario;
		this.mestado = mestado;
	}

	@Id
	@Column(name = "N_CORRELATIVO", unique = true, nullable = false, precision = 6, scale = 0)
	@GeneratedValue(strategy=GenerationType.AUTO, generator="SEQ_DC_RESOLUCION_TAII")
	public Long getNcorrelativo() {
		return this.ncorrelativo;
	}

	public void setNcorrelativo(Long ncorrelativo) {
		this.ncorrelativo = ncorrelativo;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "N_RESOLUCION", nullable = false)
	public DcResolucion getDcResolucion() {
		return this.dcResolucion;
	}

	public void setDcResolucion(DcResolucion dcResolucion) {
		this.dcResolucion = dcResolucion;
	}

	@Column(name = "S_OBSERVACION_TAII")
	public String getSobservacionTaii() {
		return this.sobservacionTaii;
	}

	public void setSobservacionTaii(String sobservacionTaii) {
		this.sobservacionTaii = sobservacionTaii;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Column(name = "M_ESTADO", precision = 2, scale = 0)
	public Integer getMestado() {
		return this.mestado;
	}

	public void setMestado(Integer mestado) {
		this.mestado = mestado;
	}

}
